<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGameZghtpUserCrownHbTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_zghpt_user_crown_hb', function (Blueprint $table) {
            $table->integer('user_id')->unsigned();
            $table->integer('crown')->unsigned();//粉丝皇冠到达某个数量级
            $table->timestamps();
            $table->primary(['user_id', 'crown']);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('game_zghpt_user_crown_hb');
    }
}
